//
//  SettingTableViewCell.m
//  YouinRTCDemo
//
//  Created by 潘欣 on 2024/6/16.
//

#import "SettingTableViewCell.h"

@interface SettingTableViewCell ()

@end

@implementation SettingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self).offset(12);
            make.centerY.mas_equalTo(self);
        }];
        
        [self.traingLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self).offset(-12);
            make.centerY.mas_equalTo(self);
        }];
        
    }
    return self;
}

- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.textColor = [UIColor blackColor];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:_titleLabel];
    }
    return _titleLabel;
}

- (UILabel *)traingLabel
{
    if (!_traingLabel) {
        _traingLabel = [[UILabel alloc] init];
        _traingLabel.textColor = [UIColor lightGrayColor];
        _traingLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:_traingLabel];
    }
    return _traingLabel;
}
@end
